/**
 *  *2010-5-2 下午03:04:20  add 
 */
package com.base.myproject.server.jbpm;

import org.jbpm.api.Configuration;
import org.jbpm.api.ProcessEngine;

/**
 * @author Administrator
 *2010-5-2
 * javazgw@gmail.com
 */
public class JbpmPE {
	ProcessEngine pe;
	static JbpmPE jpe;
	private JbpmPE()
	{
		pe = Configuration.getProcessEngine();
		
	}
	
	public static JbpmPE getInstance()
	{
		if(jpe==null)
		{
			jpe = new JbpmPE();
		}
		return jpe;
	}

	/**
	 * 获得工作流引擎
	 * @return
	 */
	public ProcessEngine getPe() {
		return pe;
	}


	
}
